/*
 * @Author: xiameng 3297626645@qq.com
 * @Date: 2025-03-04 09:39:47
 * @LastEditors: xiameng 3297626645@qq.com
 * @LastEditTime: 2025-03-04 11:06:17
 * @FilePath: \ui\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      component: () => import('../views/LoginView.vue')
    },
    {
      path: '/Show',
      name: 'Show',
      component: () => import('../views/ShowView.vue'),
      children: [
        {
          path: '/RoomTypes',
          name: 'RoomTypes',
          component: () => import('../views/Rooms/RoomTypesView.vue'),
          children: [
            {
              path: '/RoomTypesYM',
              name: 'RoomTypesYM',
              component: () => import('../views/Rooms/RoomTypeYMView.vue'),
            },
            {
              path: '/RoomCode',
              name: 'RoomCode',
              component: () => import('../views/Rooms/RoomCodeView.vue'),

            },
            {
              path: '/RoomPrice',
              name: 'RoomPrice',
              component: () => import('../views/Rooms/RoomPriceView.vue'),

            },
            {
              path: '/GoodShow',
              name: 'GoodShow',
              component: () => import('../views/Goods/GoodShow.vue'),

            },
            {
              path: '/GoodsProduct',
              name: 'GoodsProduct',
              component: () => import('../views/Goods/GoodsProduct.vue'),

            },
          ],

        },
        {
          path: '/ClientMain',
          name: 'ClientMain',
          component: () => import('../views/ClientWJ/ClientMainView.vue'),
          children: [
            {
              path: '/ClientList',
              name: 'ClientList',
              component: () => import('../views/ClientWJ/ClientListView.vue'),
            }
          ]
        },
        {
          path: '/RoomStatusMain',
          name: 'RoomStatusMain',
          component: () => import('../views/Rooms/RoomStatusMainView.vue'),         
        },
        {
              path: '/OrderTypes',
              name: 'OrderTypes',
              component: () => import('../views/Orders/OrderTypesView.vue'),
              children:[
            {
              path: '/OrderTypeDF',
              name: 'OrderTypeDF',
              component: () => import('../views/Orders/OrderTypeDFView.vue'),
            },
            {
              path: '/GoodsOrder',
              name: 'GoodsOrder',
              component: () => import('../views/Goods/GoodsOrder.vue'),

            }
          ]
        },
        {
          path: '/wraparound',
          name: 'wraparound',
          component: () => import('../views/wraparoundView.vue'),
        }
      ],

    },
  ]
})

export default router
